<html>
    <head>
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
        <style type="text/css">
        span{
            color:green;
            font-weight:bold;
        }
        </style>
    </head>
    <body>
        <h1>Detect Cut, Copy and Paste with jQuery</h1>
        <form action="#">
            <label>Text Box : </label>
            <input id="textA" type="text" size="50" value="Copy, paste or cut any text here" />
        </form>
 
        <span id="message"></span>
 
        <script type="text/javascript">
       /* $(document).ready(function() {
            $("#textA").bind({
                copy : function(e){
				console.log(e);
				var data = e.originalEvent.clipboardData.getData('Text');
				console.log(data);
                $('#message').text('copy behaviour detected!');
                },
                paste : function(e){
				console.log(e.event);
                $('#message').text('paste behaviour detected!');
                },
                cut : function(e){
				console.log(e.event);
                $('#message').text('cut behaviour detected!');
                }
            });
        });*/
		
		
		if(!window.Kolich){
  Kolich = {};
}

Kolich.Selector = {};
Kolich.Selector.getSelected = function(){
  var t = '';
  if(window.getSelection){
    t = window.getSelection();
  }else if(document.getSelection){
    t = document.getSelection();
  }else if(document.selection){
    t = document.selection.createRange().text;
  }
  return t;
}

Kolich.Selector.mouseup = function(){
  var st = Kolich.Selector.getSelected();
  if(st!=''){
    alert("You selected:\n"+st);
  }
}

$(document).ready(function(){
  $(document).bind("mouseup", Kolich.Selector.mouseup);
});

(function($)
{
    $(document).ready(function() {

        $(document).bind({
            copy : function(){
                console.log('copy behaviour detected!');
            },
            paste : function(){
                console.log('paste behaviour detected!');
            },
            cut : function(){
                console.log('cut behaviour detected!');
            }
        });

    });
})(jQuery);


        </script>
		
		
		<div>texte digitado por ariel</div>
		
		
    </body>
</html>